package com.zx.callback.common.utils;

import org.springframework.core.convert.converter.Converter;

/**
 * Created by zhaox on 17/05/27.
 */
public class StringConverter implements Converter<String, String> {
    @Override
    public String convert(String text) {
        if (text == null || (text = text.trim()).length() == 0) {
            return null;
        }
        return text.trim();
    }
}
